package com.gxa.service.avticity;

import com.gxa.pojo.activity.Activity;
import com.gxa.pojo.activity.ActivityType;
import com.gxa.pojo.activity.GoodsActivity;
import com.gxa.pojo.goods.Goods;

import java.util.List;

public interface ActivityService {
    List<Activity> findAllActivity();
    List<ActivityType> findAllActivityType();
    boolean addActivityType(ActivityType activityType);
    boolean addActivity(Activity activity);
    int openAndCloseActivity(int aid,int state);
    int openAndCloseActivityType(int atypeid,int state);
    List<ActivityType> findOpenActivityType();
    List<Activity> findOpenActivity();
    List<GoodsActivity> findActivityGoods(int aid);
    List<Goods> findActivityGoodsByType( String onetypename, String twotypename);
    List<String> findActivityTypes();
    List<String> findOneTypeName();
    List<String> findTwoTypeName(String onetypename);
    int deleteActivityGoods(int gid);
    int findActivityTypeId(String type);
    boolean addActivityGoods(GoodsActivity goodsActivity);
    int updateActivityGoodsCount(int count,int aid,int gid);
}
